using System;
using ZhCun.DbCore.Entitys;

namespace MyConsume.Models
{
	public partial class TAccount : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _UserId;
		/// <summary>
		/// UserId
		/// </summary>
		[Entity(ColumnName = CNUserId, IsNotNull = true)]
		public System.String UserId
		{
			get { return _UserId; }
			set
			{
				_UserId = value;
				base.SetFieldChanged(CNUserId) ;
			}
		}

		private System.String _ActName;
		/// <summary>
		/// ActName
		/// </summary>
		[Entity(ColumnName = CNActName, IsNotNull = true)]
		public System.String ActName
		{
			get { return _ActName; }
			set
			{
				_ActName = value;
				base.SetFieldChanged(CNActName) ;
			}
		}

		private System.String _ActNamePY;
		/// <summary>
		/// ActNamePY
		/// </summary>
		[Entity(ColumnName = CNActNamePY, IsNotNull = true)]
		public System.String ActNamePY
		{
			get { return _ActNamePY; }
			set
			{
				_ActNamePY = value;
				base.SetFieldChanged(CNActNamePY) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(ColumnName = CNRemark)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				_Remark = value;
				base.SetFieldChanged(CNRemark) ;
			}
		}

		private System.Decimal _Balance;
		/// <summary>
		/// Balance
		/// </summary>
		[Entity(ColumnName = CNBalance, IsNotNull = true)]
		public System.Decimal Balance
		{
			get { return _Balance; }
			set
			{
				_Balance = value;
				base.SetFieldChanged(CNBalance) ;
			}
		}

		private System.Int32 _UseCount;
		/// <summary>
		/// UseCount
		/// </summary>
		[Entity(ColumnName = CNUseCount, IsNotNull = true)]
		public System.Int32 UseCount
		{
			get { return _UseCount; }
			set
			{
				_UseCount = value;
				base.SetFieldChanged(CNUseCount) ;
			}
		}

		private System.Int32? _OrderNo;
		/// <summary>
		/// OrderNo
		/// </summary>
		[Entity(ColumnName = CNOrderNo)]
		public System.Int32? OrderNo
		{
			get { return _OrderNo; }
			set
			{
				_OrderNo = value;
				base.SetFieldChanged(CNOrderNo) ;
			}
		}

		private System.Boolean _IsDel;
		/// <summary>
		/// IsDel
		/// </summary>
		[Entity(ColumnName = CNIsDel, IsNotNull = true)]
		public System.Boolean IsDel
		{
			get { return _IsDel; }
			set
			{
				_IsDel = value;
				base.SetFieldChanged(CNIsDel) ;
			}
		}

		private System.DateTime _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(ColumnName = CNAddTime, IsNotNull = true)]
		public System.DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				_AddTime = value;
				base.SetFieldChanged(CNAddTime) ;
			}
		}

		private System.String _AddHost;
		/// <summary>
		/// AddHost
		/// </summary>
		[Entity(ColumnName = CNAddHost)]
		public System.String AddHost
		{
			get { return _AddHost; }
			set
			{
				_AddHost = value;
				base.SetFieldChanged(CNAddHost) ;
			}
		}

		private System.DateTime _LastTime;
		/// <summary>
		/// LastTime
		/// </summary>
		[Entity(ColumnName = CNLastTime, IsNotNull = true)]
		public System.DateTime LastTime
		{
			get { return _LastTime; }
			set
			{
				_LastTime = value;
				base.SetFieldChanged(CNLastTime) ;
			}
		}

		private System.String _LastHost;
		/// <summary>
		/// LastHost
		/// </summary>
		[Entity(ColumnName = CNLastHost)]
		public System.String LastHost
		{
			get { return _LastHost; }
			set
			{
				_LastHost = value;
				base.SetFieldChanged(CNLastHost) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNUserId = "UserId";
		public const string CNActName = "ActName";
		public const string CNActNamePY = "ActNamePY";
		public const string CNRemark = "Remark";
		public const string CNBalance = "Balance";
		public const string CNUseCount = "UseCount";
		public const string CNOrderNo = "OrderNo";
		public const string CNIsDel = "IsDel";
		public const string CNAddTime = "AddTime";
		public const string CNAddHost = "AddHost";
		public const string CNLastTime = "LastTime";
		public const string CNLastHost = "LastHost";
		#endregion

	}
}
